package com.ruoyi.carShop.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import com.ruoyi.system.api.domain.CheckInformation;
import com.ruoyi.system.api.domain.Merchant;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

public class Activity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    //商户对象
    private Merchant merchant;

    public Merchant getMerchant() {
        return merchant;
    }

    public void setMerchant(Merchant merchant) {
        this.merchant = merchant;
    }
    private CheckInformation checkInformation;

    public CheckInformation getCheckInformation() {
        return checkInformation;
    }

    public void setCheckInformation(CheckInformation checkInformation) {
        this.checkInformation = checkInformation;
    }

    //商户的门店地址
    private String merchantAddress;

    //商户名称
    private String merchantName;
    /** 信息ID */
    private Long riId;

    /** 标题 */
    @Excel(name = "标题")
    private String riTitle;

    /** 发布内容 */
    @Excel(name = "发布内容")
    private String riContent;

    /** 发布人 */
    @Excel(name = "发布人")
    private String riPerson;

    /** 上下架状态，1为上架，0为下架 */
    @Excel(name = "上下架状态，1为上架，0为下架")
    private Integer riStatus;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date riTime;

    /** 发布图片 */
    @Excel(name = "发布图片")
    private String riImage;

    /** 审核状态，审核通过，未审核审核不通过 */
    @Excel(name = "审核状态，审核通过，未审核审核不通过")
    private Long riReviewStatus;

    public Long getRiReviewStatus() {
        return riReviewStatus;
    }

    public void setRiReviewStatus(Long riReviewStatus) {
        this.riReviewStatus = riReviewStatus;
    }

    /** 店铺ID */
    @Excel(name = "店铺ID")
    private Long riShopId;

    public void setRiId(Long riId)
    {
        this.riId = riId;
    }

    public Long getRiId()
    {
        return riId;
    }
    public void setRiTitle(String riTitle)
    {
        this.riTitle = riTitle;
    }

    public String getRiTitle()
    {
        return riTitle;
    }
    public void setRiContent(String riContent)
    {
        this.riContent = riContent;
    }

    public String getRiContent()
    {
        return riContent;
    }
    public void setRiPerson(String riPerson)
    {
        this.riPerson = riPerson;
    }

    public String getRiPerson()
    {
        return riPerson;
    }
    public void setRiStatus(Integer riStatus)
    {
        this.riStatus = riStatus;
    }

    public Integer getRiStatus()
    {
        return riStatus;
    }
    public void setRiTime(Date riTime)
    {
        this.riTime = riTime;
    }

    public Date getRiTime()
    {
        return riTime;
    }
    public void setRiImage(String riImage)
    {
        this.riImage = riImage;
    }

    public String getRiImage()
    {
        return riImage;
    }

    public void setRiShopId(Long riShopId)
    {
        this.riShopId = riShopId;
    }

    public Long getRiShopId()
    {
        return riShopId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("riId", getRiId())
                .append("riTitle", getRiTitle())
                .append("riContent", getRiContent())
                .append("riPerson", getRiPerson())
                .append("riStatus", getRiStatus())
                .append("riTime", getRiTime())
                .append("riImage", getRiImage())
                .append("riReviewStatus", getRiReviewStatus())
                .append("riShopId", getRiShopId())
                .toString();
    }
}
